package com.woniu.aimd.service.impl;

import com.woniu.aimd.mapper.ClazzMapper;
import com.woniu.aimd.pojo.entity.Clazz;
import com.woniu.aimd.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zcnovice
 * @data 2025/6/10 下午2:19
 */
@Service
public class ClazzServiceImpl implements ClazzService {
    @Autowired
    private ClazzMapper clazzMapper;

    @Override
    public boolean insert(Clazz clazz) {
        return clazzMapper.insert(clazz);
    }

    @Override
    public boolean delete(String classId) {
        return clazzMapper.delete(classId);
    }

    @Override
    public boolean update(Clazz clazz) {
        return clazzMapper.update(clazz);
    }

    @Override
    public List<Clazz> findByClass(Clazz clazz) {
        return clazzMapper.findByClass(clazz);
    }
}
